﻿using ConfExpert.Forms.Rapor.YeniYapi;
using DevExpress.XtraEditors;
using DevExpress.XtraNavBar;

namespace ConfExpert.Forms.DockingControls
{
    public class Reports : DockingControlBase
    {
        public Reports(NavBarControl navBar, TextEdit txtFilter, SimpleButton btnClearFilter)
        {
            NavigationBar = navBar;
            FilterTextBox = txtFilter;
            ClearFilterButton = btnClearFilter;

            NavigationBar.Groups.Clear();

            NavBarGroup group = AddGroup("Etiketler");
            AddMenuItem(group, "Top Etiketleri", typeof(TopEtiketleri));
            AddMenuItem(group, "Tela Top Etiketleri", typeof(TelaTopEtiketleri));
            AddMenuItem(group, "Numune Etiketleri", typeof(TopEtiketleri), true);
            AddMenuItem(group, "Raf Etiketleri", typeof(RafEtiketleri));
            //AddMenuItem(group, "Arşiv/Kalite Etiketleri", typeof(_POEtiketler));
            AddMenuItem(group, "Kumaş Kartelası", typeof(Rapor.Kartela.KartelaOlustur));

            group = AddGroup("Stok");
            AddMenuItem(group, "Genel Stok", typeof(GenelStok), "Genel", string.Empty);
            AddMenuItem(group, "Genel Stok- CK", typeof(GenelStokCK));
            AddMenuItem(group, "Müşteri-Sezon Kırılımı", typeof(GenelStokMusteriSezon), "CustomerId");
            AddMenuItem(group, "Üretici-Sezon Kırılımı", typeof(GenelStokMusteriSezon), "VendorId");
            AddMenuItem(group, "ESP Stoku (müşteri gruplu)", typeof(GenelStok), "ESP", "C");
            AddMenuItem(group, "ESP Stoku (artikel gruplu)", typeof(GenelStok), "ESP", "P");

            group = AddGroup("Rapor");
            AddMenuItem(group, "Ortak Kumaş Tablosu", typeof(OrtakKumasRaporlari));
            AddMenuItem(group, "Atelyelere Çıkan Kumaşlar", typeof(AtelyeCikanKumas));
            AddMenuItem(group, "Dosya Bazında Çıkan Kumaşlar", typeof(Depo.OrtakKumasCikislari));
            AddMenuItem(group, "Kapama Raporu", typeof(KapamaRaporu));
            AddMenuItem(group, "Fason Fatura Raporu", typeof(FasonFaturaRaporu));
        }
    }
}